package com.manor.im.huawei;

import android.content.Context;
import android.os.Bundle;

import com.huawei.hms.support.api.push.PushReceiver;
import com.manor.common.utils.KLog;
import com.manor.im.ThirdPushTokenMgr;


public class HUAWEIPushReceiver  extends PushReceiver {
    private static final String TAG = "huaweipush";

    @Override
    public void onToken(Context context, String token, Bundle extras) {
        KLog.e(TAG, "onToken:" + token);
        ThirdPushTokenMgr.getInstance().setThirdPushToken(token);  // token 在此处传入，后续推送信息上报时需要使用
        ThirdPushTokenMgr.getInstance().setPushTokenToTIM();

    }
    @Override
    public boolean onPushMsg(Context context, byte[] msgBytes, Bundle extras) {

        return super.onPushMsg(context, msgBytes, extras);
    }



}
